<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author:HCZ <huangchengze@etrol.com>
// +-----------------------------------------------------------------------

namespace app\warning\model;

use app\common\model\Base;
/**
 * 预警预测
 */
class Warning extends Base{
	

	protected $name = 'earlywarning';
	protected $createTime = 'createTime';
	protected $updateTime = 'updateTime';
	
	//预警预测模拟分数
	public $scoreGroup = [
			'technique' => ['c1', 'c2','c3','c4'],
			'equipment' => ['c5','c6','c7','c8'],
			'working' => ['c9','c10'],
			'behavior' => ['c11','c12','c13'],
			'manage' => ['c14','c15','c16','c17','c18'],
	];
	
	public function enterprise() {
		return $this->hasOne('app\basic\model\Enterprise','id','enterpriseId');
	}

}